home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmaaaacccctttteeeesssstttt((((1111)))) mmmmaaaacccctttteeeesssstttt((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- mactest - Tests MAC labels on directories, files and processes.
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- mactest ----PPPP -_D|_d|_e|_x file
- mactest ----FFFF -_D|_d|_e|_x file1 file2
- mactest ----LLLL -_D|_d|_e|_x label file1
- mactest ----MMMM [directory]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _m_a_c_t_e_s_t command allows the current process and specified
- files/directories to have their MAC label attributes compared for
- dominance, equality and moldyness.
-
- _m_a_c_t_e_s_t evaluates the MAC labels using the given options and returns a
- boolean result.
-
- The options PPPP, FFFF, LLLL and MMMM determine the type of test:
-
- ----PPPP Compare current running process and file.
- ----FFFF Compare two files.
- ----LLLL Compare MAC label and file.
- ----MMMM Check if the process or directory is moldy.
-
- The options DDDD, dddd, eeee and xxxx determine the type of comparison test:
-
- DDDD if [Process | file1 | maclabel] _d_o_m_i_n_a_t_e_s file
- dddd if [Process | file1 | maclabel] is _d_o_m_i_n_a_t_e_d by file
- eeee if [Process | file1 | maclabel] and file compare as _e_q_u_a_l
- xxxx if [Process | file1 | maclabel] and file are _e_x_a_c_t_l_y _e_q_u_a_l
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _m_a_c_t_e_s_t returns 0000((((TTTTrrrruuuueeee)))) if the test is successful, 1111((((FFFFaaaallllsssseeee)))) if the test
- failed and ----1111 on error.
-
- The ----MMMM (moldy) test option will only return 0000((((TTTTrrrruuuueeee)))) if the current
- process is also moldy, as moldy directories are transparent to non-moldy
- processes. See newlabel(1).
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- _m_a_c_t_e_s_t -P -D abc.txt
- Will return 0(True) if the process MAC label dominates the MAC label
- of the file abc.txt
-
- _m_a_c_t_e_s_t -Lx userlow abc.txt
- Will return 0(True) if the label 'userlow' is exactly the same as
- the MAC label of abc.txt
-
- _m_a_c_t_e_s_t -M tmp
- Will return 0(True) if the directory 'tmp' has a moldy MAC label.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmaaaacccctttteeeesssstttt((((1111)))) mmmmaaaacccctttteeeesssstttt((((1111))))
-
-
-
- _m_a_c_t_e_s_t -M
- Will return 0(True) if the process MAC label is moldy.
-
- FFFFIIIILLLLEEEESSSS
- /etc/mac - MAC Label definitions.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- chlabel(1), newlabel(1), and test(1)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-